﻿@{
    Layout = null;
}

<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>企业后台管理系统</title>
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        }

        :root {
            --primary-blue: #1a73e8;
            --secondary-blue: #4285f4;
            --light-blue: #e8f0fe;
            --dark-blue: #0d47a1;
            --white: #ffffff;
            --light-gray: #f8f9fa;
            --text-dark: #202124;
            --text-light: #5f6368;
            --border-color: #dadce0;
            --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
            --menu-bg: #fafbfc;
            --menu-hover: #e6f1ff;
        }

        body {
            background-color: #f5f7fa;
            color: var(--text-dark);
            display: flex;
            flex-direction: column;
            height: 100vh;
            overflow: hidden;
        }

        /* 顶部导航栏 */
        .header {
            background-color: var(--white);
            box-shadow: var(--shadow);
            padding: 0 24px;
            height: 64px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            z-index: 100;
        }

        .system-info {
            display: flex;
            align-items: center;
        }

        .logo {
            width: 40px;
            height: 40px;
            background: linear-gradient(135deg, var(--primary-blue), var(--dark-blue));
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-right: 16px;
            color: white;
            font-weight: bold;
        }

        .system-name {
            font-size: 20px;
            font-weight: 600;
            color: var(--primary-blue);
        }

        .user-info {
            display: flex;
            align-items: center;
            gap: 16px;
        }

        .user-notification {
            color: var(--text-light);
            cursor: pointer;
            position: relative;
        }

        .notification-badge {
            position: absolute;
            top: -5px;
            right: -5px;
            background-color: #f44336;
            color: white;
            border-radius: 50%;
            width: 18px;
            height: 18px;
            font-size: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .user-avatar {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background-color: var(--light-blue);
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--primary-blue);
            font-weight: bold;
            cursor: pointer;
        }

        .user-name {
            color: var(--text-dark);
            font-weight: 500;
        }

        /* 主体内容区域 */
        .main-container {
            display: flex;
            flex: 1;
            overflow: hidden;
        }

        /* 左侧菜单 */
        .sidebar {
            width: 250px;
            background-color: var(--menu-bg);
            box-shadow: var(--shadow);
            display: flex;
            flex-direction: column;
            transition: width 0.3s ease;
            overflow-y: auto;
            z-index: 10;
        }

            .sidebar.collapsed {
                width: 64px;
            }

        .menu-toggle {
            padding: 16px;
            display: flex;
            justify-content: flex-end;
            color: var(--text-light);
            cursor: pointer;
        }

        .menu-items {
            padding: 8px 0;
            flex: 1;
        }

        .menu-item {
            padding: 12px 24px;
            display: flex;
            align-items: center;
            color: var(--text-light);
            text-decoration: none;
            transition: all 0.2s;
            position: relative;
            cursor: pointer;
        }

            .menu-item:hover {
                background-color: var(--menu-hover);
                color: var(--primary-blue);
            }

            .menu-item.active {
                background-color: var(--light-blue);
                color: var(--primary-blue);
                border-left: 4px solid var(--primary-blue);
            }

            .menu-item i {
                margin-right: 12px;
                width: 24px;
                text-align: center;
            }

            .menu-item .arrow {
                position: absolute;
                right: 16px;
                transition: transform 0.3s ease;
            }

            .menu-item.expanded .arrow {
                transform: rotate(90deg);
            }

        .submenu {
            max-height: 0;
            overflow: hidden;
            transition: max-height 0.3s ease;
            background-color: var(--light-gray);
        }

        .menu-item.expanded + .submenu {
            max-height: 500px;
        }

        .submenu-item {
            padding: 12px 24px 12px 60px;
            display: block;
            color: var(--text-light);
            text-decoration: none;
            transition: all 0.2s;
        }

            .submenu-item:hover {
                background-color: var(--menu-hover);
                color: var(--primary-blue);
            }

            .submenu-item.active {
                color: var(--primary-blue);
                font-weight: 500;
            }

        .sidebar.collapsed .menu-text {
            display: none;
        }

        .sidebar.collapsed .arrow {
            display: none;
        }

        .sidebar.collapsed .submenu {
            display: none;
        }

        /* 右侧内容区域 */
        .content {
            flex: 1;
            padding: 24px;
            overflow-y: auto;
            background-color: var(--light-gray);
        }

        .dashboard-title {
            margin-bottom: 24px;
            color: var(--text-dark);
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .breadcrumb {
            font-size: 14px;
            color: var(--text-light);
        }

            .breadcrumb a {
                color: var(--primary-blue);
                text-decoration: none;
            }

        .stats-cards {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
            gap: 24px;
            margin-bottom: 24px;
        }

        .stat-card {
            background: var(--white);
            border-radius: 12px;
            padding: 20px;
            box-shadow: var(--shadow);
            transition: transform 0.2s;
        }

            .stat-card:hover {
                transform: translateY(-5px);
            }

        .stat-card-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 16px;
        }

        .stat-card-title {
            color: var(--text-light);
            font-size: 14px;
        }

        .stat-card-icon {
            width: 40px;
            height: 40px;
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            background-color: var(--light-blue);
            color: var(--primary-blue);
        }

        .stat-card-value {
            font-size: 24px;
            font-weight: 600;
            color: var(--text-dark);
        }

        .stat-card-change {
            font-size: 12px;
            color: #34a853;
            margin-top: 4px;
        }

        .charts-container {
            display: grid;
            grid-template-columns: 2fr 1fr;
            gap: 24px;
            margin-bottom: 24px;
        }

        .chart-card {
            background: var(--white);
            border-radius: 12px;
            padding: 20px;
            box-shadow: var(--shadow);
        }

        .chart-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 16px;
        }

        .chart-title {
            font-size: 16px;
            font-weight: 600;
            color: var(--text-dark);
        }

        .chart-content {
            height: 300px;
            background: linear-gradient(180deg, #e8f0fe 0%, #ffffff 100%);
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--primary-blue);
            border-radius: 8px;
        }

        .recent-activities {
            background: var(--white);
            border-radius: 12px;
            padding: 20px;
            box-shadow: var(--shadow);
        }

        .activity-item {
            display: flex;
            padding: 12px 0;
            border-bottom: 1px solid var(--border-color);
        }

            .activity-item:last-child {
                border-bottom: none;
            }

        .activity-icon {
            width: 36px;
            height: 36px;
            border-radius: 50%;
            background-color: var(--light-blue);
            display: flex;
            align-items: center;
            justify-content: center;
            margin-right: 12px;
            color: var(--primary-blue);
        }

        .activity-content {
            flex: 1;
        }

        .activity-title {
            font-weight: 500;
            margin-bottom: 4px;
        }

        .activity-time {
            font-size: 12px;
            color: var(--text-light);
        }

        @@media (max-width: 768px) {
            .sidebar {
                width: 64px;
            }

                .sidebar .menu-text {
                    display: none;
                }

            .charts-container {
                grid-template-columns: 1fr;
            }
        }
    </style>
</head>
<body>
    <!-- 顶部导航栏 -->
    <header class="header">
        <div class="system-info">
            <div class="logo">
                <i class="fas fa-cube"></i>
            </div>
            <h1 class="system-name">企业管理系统</h1>
        </div>

        <div class="user-info">
            <div class="user-notification">
                <i class="fas fa-bell"></i>
                <span class="notification-badge">3</span>
            </div>
            <div class="user-avatar">
                <i class="fas fa-user"></i>
            </div>
            <div class="user-name">管理员</div>
        </div>
    </header>

    <!-- 主体内容区域 -->
    <div class="main-container">
        <!-- 左侧菜单 -->
        <aside class="sidebar">
            <div class="menu-toggle">
                <i class="fas fa-bars"></i>
            </div>

            <nav class="menu-items">
                <a href="#" class="menu-item active">
                    <i class="fas fa-home"></i>
                    <span class="menu-text">控制台</span>
                </a>
                <a href="#" class="menu-item">
                    <i class="fas fa-users"></i>
                    <span class="menu-text">用户管理</span>
                </a>

                <!-- 数据统计菜单（有二级菜单） -->
                <div class="menu-item expanded">
                    <i class="fas fa-chart-bar"></i>
                    <span class="menu-text">数据统计</span>
                    <i class="fas fa-chevron-right arrow"></i>
                </div>
                <div class="submenu">
                    <a href="#" class="submenu-item active">销售统计</a>
                    <a href="#" class="submenu-item">用户分析</a>
                </div>

                <a href="#" class="menu-item">
                    <i class="fas fa-shopping-cart"></i>
                    <span class="menu-text">订单管理</span>
                </a>
                <a href="#" class="menu-item">
                    <i class="fas fa-box"></i>
                    <span class="menu-text">产品管理</span>
                </a>

                <!-- 系统设置菜单（有二级菜单） -->
                <div class="menu-item">
                    <i class="fas fa-cog"></i>
                    <span class="menu-text">系统设置</span>
                    <i class="fas fa-chevron-right arrow"></i>
                </div>
                <div class="submenu">
                    <a href="#" class="submenu-item">基本设置</a>
                    <a href="#" class="submenu-item">权限设置</a>
                </div>
            </nav>
        </aside>

        <!-- 右侧内容区域 -->
        <main class="content">
            <div class="dashboard-title">
                <h2>控制台</h2>
                <div class="breadcrumb">
                    <a href="#">首页</a> / <span>控制台</span>
                </div>
            </div>

            <!-- 统计卡片 -->
            <div class="stats-cards">
                <div class="stat-card">
                    <div class="stat-card-header">
                        <div class="stat-card-title">用户总数</div>
                        <div class="stat-card-icon">
                            <i class="fas fa-users"></i>
                        </div>
                    </div>
                    <div class="stat-card-value">5,248</div>
                    <div class="stat-card-change">+12% 较上月</div>
                </div>

                <div class="stat-card">
                    <div class="stat-card-header">
                        <div class="stat-card-title">订单总数</div>
                        <div class="stat-card-icon">
                            <i class="fas fa-shopping-cart"></i>
                        </div>
                    </div>
                    <div class="stat-card-value">12,856</div>
                    <div class="stat-card-change">+8% 较上月</div>
                </div>

                <div class="stat-card">
                    <div class="stat-card-header">
                        <div class="stat-card-title">销售额</div>
                        <div class="stat-card-icon">
                            <i class="fas fa-dollar-sign"></i>
                        </div>
                    </div>
                    <div class="stat-card-value">¥256,890</div>
                    <div class="stat-card-change">+15% 较上月</div>
                </div>

                <div class="stat-card">
                    <div class="stat-card-header">
                        <div class="stat-card-title">平均响应时间</div>
                        <div class="stat-card-icon">
                            <i class="fas fa-clock"></i>
                        </div>
                    </div>
                    <div class="stat-card-value">0.86s</div>
                    <div class="stat-card-change">-0.12s 较上月</div>
                </div>
            </div>

            <!-- 图表区域 -->
            <div class="charts-container">
                <div class="chart-card">
                    <div class="chart-header">
                        <div class="chart-title">月度销售趋势</div>
                        <div class="chart-actions">
                            <i class="fas fa-ellipsis-h"></i>
                        </div>
                    </div>
                    <div class="chart-content">
                        <i class="fas fa-chart-line" style="font-size: 48px;"></i>
                        <p>销售趋势图表区域</p>
                    </div>
                </div>

                <div class="chart-card">
                    <div class="chart-header">
                        <div class="chart-title">用户分布</div>
                        <div class="chart-actions">
                            <i class="fas fa-ellipsis-h"></i>
                        </div>
                    </div>
                    <div class="chart-content">
                        <i class="fas fa-chart-pie" style="font-size: 48px;"></i>
                        <p>用户分布图表区域</p>
                    </div>
                </div>
            </div>

            <!-- 最近活动 -->
            <div class="recent-activities">
                <div class="chart-header">
                    <div class="chart-title">最近活动</div>
                    <div class="chart-actions">
                        <i class="fas fa-ellipsis-h"></i>
                    </div>
                </div>

                <div class="activities-list">
                    <div class="activity-item">
                        <div class="activity-icon">
                            <i class="fas fa-user-plus"></i>
                        </div>
                        <div class="activity-content">
                            <div class="activity-title">新用户注册</div>
                            <div class="activity-desc">用户 "张三" 刚刚注册了账户</div>
                            <div class="activity-time">10分钟前</div>
                        </div>
                    </div>

                    <div class="activity-item">
                        <div class="activity-icon">
                            <i class="fas fa-shopping-cart"></i>
                        </div>
                        <div class="activity-content">
                            <div class="activity-title">新订单</div>
                            <div class="activity-desc">收到来自 "李四" 的新订单 #12567</div>
                            <div class="activity-time">2小时前</div>
                        </div>
                    </div>

                    <div class="activity-item">
                        <div class="activity-icon">
                            <i class="fas fa-check-circle"></i>
                        </div>
                        <div class="activity-content">
                            <div class="activity-title">订单完成</div>
                            <div class="activity-desc">订单 #12089 已完成交付</div>
                            <div class="activity-time">5小时前</div>
                        </div>
                    </div>

                    <div class="activity-item">
                        <div class="activity-icon">
                            <i class="fas fa-comment"></i>
                        </div>
                        <div class="activity-content">
                            <div class="activity-title">新反馈</div>
                            <div class="activity-desc">"王五" 提交了产品反馈</div>
                            <div class="activity-time">昨天</div>
                        </div>
                    </div>
                </div>
            </div>
        </main>
    </div>

    <script>
        // 菜单折叠功能
        document.querySelector('.menu-toggle').addEventListener('click', function() {
            document.querySelector('.sidebar').classList.toggle('collapsed');
        });

        // 菜单项点击事件
        document.querySelectorAll('.menu-item').forEach(item => {
            item.addEventListener('click', function() {
                // 如果点击的是有子菜单的项
                if (this.nextElementSibling && this.nextElementSibling.classList.contains('submenu')) {
                    this.classList.toggle('expanded');
                } else {
                    // 普通菜单项点击
                    document.querySelectorAll('.menu-item').forEach(i => {
                        i.classList.remove('active');
                    });
                    this.classList.add('active');
                }
            });
        });

        // 子菜单项点击事件
        document.querySelectorAll('.submenu-item').forEach(item => {
            item.addEventListener('click', function() {
                document.querySelectorAll('.submenu-item').forEach(i => {
                    i.classList.remove('active');
                });
                this.classList.add('active');
            });
        });
    </script>
</body>
</html>